﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace PMC.Plugins
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public sealed class ScriptInfoAttribute : Attribute
    {
        /// <summary>
        /// Provides Info about the script
        /// </summary>
        /// <param name="title">Title</param>
        /// <param name="author">Author</param>
        /// <param name="description">Description</param>
        /// <param name="version">Version</param>
        public ScriptInfoAttribute(string title, string author, string description, string version)
         : this(title, author, description,version, "")
        {
            
        }

        /// <summary>
        /// Provides Info about the script
        /// </summary>
        /// <param name="title">Title</param>
        /// <param name="author">Author</param>
        /// <param name="description">Description</param>
        /// <param name="version">Version</param>
        /// <param name="cultureInfo">Language/culture it's designed for</param>
        public ScriptInfoAttribute(string title, string author, string description, string version, string cultureInfo)
        {
            Title = title;
            Author = author;
            Description = description;
            Version = version;
            CultureInfo = cultureInfo;
        }

        public string Title { get; private set; }
        public string Author { get; private set; }
        public string Description { get; private set; }
        public string Version { get; private set; }
        public string CultureInfo { get; set; }
    }
}
